{template header}

<script src="{SITE_URL}public/js/uploadify/jquery.uploadify.min.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="{SITE_URL}public/js/uploadify/uploadify.css">

<script type="text/javascript">
	$(function() {
		$('#file_upload').uploadify({
			'auto'     : true,
			'fileTypeDesc' : 'mp4格式',
			'fileTypeExts' : '*.mp4',
			'buttonImage' : '{SITE_URL}public/images/upload.png',
			'swf'      : '{SITE_URL}public/js/uploadify/uploadify.swf',
			'uploader' : "{SITE_URL}index.php?app=study&ac=video&ts=upload&studyid={$strStudy['studyid']}",
			'onQueueComplete' : function(queueData) {
				//刷新本页
				window.location.reload()
			}
		})
	});
</script>

<div class="container">

	<ol class="breadcrumb">
		<li><a href="{tsUrl('study')}">课程</a></li>
		<li><a href="{tsUrl('study','show',array('id'=>$strStudy['studyid']))}">{$strStudy[studyname]}</a> </li>
		<li class="active">管理</li>
	</ol>



	<div class="panel panel-default">
		<div class="panel-body">


			{template edit_menu}
 
<div>
<p>上传视频只支持：*.mp4格式，支持上传多个视频，单个文件上传大小：{php echo ini_get('upload_max_filesize')}</p>
<div id="queue"></div>
<input id="file_upload" name="file_upload" type="file" multiple="true">
</div>

<table class="table">
<thead>
<tr><th>视频ID</th><th>标题</th><th>大小</th><th>操作</th></tr >
</thead>

<tbody>
{loop $arrVideo $key $item}
<tr><td>{$item['videoid']}</td><td>{$item['title']}</td><td>{$item['size']}</td><td>

	<a href="{tsUrl('study','edit',array('ts'=>'videodel','studyid'=>$strStudy['studyid'],'videoid'=>$item['videoid']))}">删除</a>

</td></tr >
{/loop}
</tbody>

</table>
 
 
  
</div>
</div>


</div>

{template footer}

